<template>
  <div class="category">
    <h2>{{title}}</h2>
    <!-- 预留一个槽位（挖个坑） -->
    <slot name="s1">等待您放置结构1....</slot>
    <slot name="s2">等待您放置结构2....</slot>
    <slot>等待您放置结构3</slot>
  </div>
</template>

<script>
  export default {
    name: "Category",
    props:['title'],
  };
</script>

<style scoped>
.category {
  background-color: skyblue;
  /* padding: 10px; */
  border-radius: 10px;
  box-shadow: 0 0 10px black;
  width: 300px;
  height: 400px;
}
h2 {
  background-color: orange;
  text-align: center;
}
li{
  font-size: 20px;
}
img,video {
  width: 100%;
}
</style>